function Pos(subString, text : Str255) : integer;

Returns the starting position of the subString in text.  If the subString was not found then 0 is returned.

Also see:  Delete